package utils

import "github.com/gin-gonic/gin"

func GetToken(c *gin.Context) string {
	token := c.Request.Header.Get("token")
	if token == "" {
		token = c.DefaultQuery("token", "")
	}
	return token
}
